package com.whalehearing.tingyou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whalehearing.tingyou.domain.HearingAudiogram;
import com.whalehearing.tingyou.dto.HearingAudiogramDTO;

import java.util.List;
import java.util.Map;

/**
 * 听力档案Service接口
 *
 * @author zengjun-qxm
 * @date 2024-09-13
 */
public interface IHearingAudiogramService extends IService<HearingAudiogram> {

    /**
     * 查询听力档案列表
     *
     * @param hearingAudiogram 听力档案
     * @return 听力档案集合
     */
    public List<HearingAudiogram> selectHearingAudiogramList(HearingAudiogram hearingAudiogram);

    //--------------------------------------api接口---------------------------------------------------
    /**
     * 新增听力档案对象
     */
    Long saveAudiogram(HearingAudiogramDTO hearingAudiogramDTO);

    /**
     * 根据-userId-查询用户名-用于听力检测首页展示
     */
    List<Map<String, Object>> getUserNameByUserId(Long userId);

    /**
     * 根据-userId-查询听力档案列表
     */
    List<Map<String, Object>> getAudiogramListByUserId(Long userId);

    /**
     * 根据-audiogramId-获取听力档案详细信息
     */
    HearingAudiogramDTO getAudiogramInfoByAudiogramId(Long audiogramId);

    /**
     * 根据-推荐记录id-获取听力档案id-用户的年龄等信息
     */
    HearingAudiogramDTO getInfoByRecommendId(Long id);


}
